package com.yushu.base.service;

import com.baomidou.mybatisplus.service.IService;
import com.yushu.common.util.pager.Pages;
import java.util.List;
import java.util.Map;
import com.yushu.base.pojo.vo.DicVO;
import com.yushu.base.pojo.bo.Dic;

/**
 * 
 * @author test
 * @CreateDate 2020-12-03 15:47:25
 */
public interface DicService   extends IService<Dic> {
    Pages<DicVO> page(Pages<DicVO> page);

    boolean deleteBatch(List<DicVO> dics);

    Dic updateByKey(Dic dic);

    String checkRepeat(Map map);

    List<Dic> selectList(Dic dic);

    boolean insert(DicVO entity);

    void insertDicSet(DicVO dic);

    DicVO selectDicVOById(String id);

    void update(DicVO dic);

    //校验字典名称是否重复
    Dic validateDicName(String name);

    public String validateDName(String name, String key);
}
